package com.szrt.day20161020.point04;

public class StudnetEntity {
	
	
	/**
	 * 
	 * 因为我们这个班只有1个老师  这个老师就黄老师
	 * 如果1个属性你确定是唯一  在java中用static 
	 * 
	 * 
	 */
	private static String teacherName;
	
	private String name;
	
	
	
	public static String getTeacherName() {
		return teacherName;
	}

	public static void setTeacherName(String teacherName) {
		StudnetEntity.teacherName = teacherName;
	}

	/**
	 * 年龄
	 */
	private int age;

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
	
	

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public StudnetEntity(int age) {
		this.age = age;
	}
	
	public StudnetEntity() {
	}
	
	public void cry(){
		System.out.println("我哭啦.....");
	}

}
